package com.example.huanhang.changzhouapp.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.huanhang.changzhouapp.R;
import com.example.huanhang.changzhouapp.bean.Pdf;

import java.util.List;

/**
 * Created by huanhang on 2018/8/24 0024.
 */

public class PdfAdapter extends BaseQuickAdapter<Pdf, BaseViewHolder> {
    public PdfAdapter(@LayoutRes int layoutResId, @Nullable List<Pdf> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Pdf item) {
        helper.setText(R.id.item_name,"名称:" +item.getName())
                .setText(R.id.item_number,"编号:" + item.getNumber());
    }
}
